package com.wrupple.vegetate.server.bussiness.converters;

import java.util.ArrayList;
import java.util.HashSet;

import org.springframework.core.convert.converter.Converter;

public class ListToSetConverter implements Converter<ArrayList, HashSet> {

	@Override
	public HashSet convert(ArrayList source) {
		HashSet r = new HashSet(source.size());
		for (Object o : source) {
			r.add(o);
		}
		return r;
	}

}
